﻿// *************************************************************************************************
// Project: RealSense.Light.Core
// Namespace: RealSense.Light.Core
// File: Version.cs  Author: Peter O'Hanlon
// Copyright © Peter O'Hanlon 2014-2015
// Date: 2015/1/2 14:02
// *************************************************************************************************
using RealSense.Light.Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RealSense.Light.Core
{
  public class Version : IVersion
  {
    private PXCMSession.ImplVersion version;
    internal Version(PXCMSession session)
    {
      version = session.QueryVersion();
    }

    /// <summary>
    /// Gets the SDK major version.
    /// </summary>
    public short Major
    {
      get { return version.major; }
    }

    /// <summary>
    /// Gets the SDK minor version.
    /// </summary>
    public short Minor
    {
      get { return version.minor; }
    }
  }
}
